package com.frontop.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frontop.common.domain.TUserShowInfo;
import com.frontop.common.domain.UserJurisdiction;
import com.frontop.modules.model.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YangBoos
 * @title: TUserMapper
 * @projectName frontop-cloud
 * @description:
 */
@Mapper
public interface TUserMapper extends BaseMapper<TUser> {
    List<String> getUserAllJurisdiction(String userName);

    UserJurisdiction getUserJurisdictionByUserName(String userName);

    /**
     * 用户查询个人信息
     * @param userName
     * @return
     */
    TUserShowInfo selectShowUserInfo(@Param("userName")String userName);

    Integer upPwd(@Param("userName")String userName,@Param("password")String password);
}
